package com.china08.yxyapi.entity.db.yxy;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_yxy_holiday", catalog = "yxy_yxy")
public class YxyHoliday extends BaseEntityNoId {

    @Column(name = "year", nullable = false, columnDefinition = "int(11) comment '年份' ")
    private Integer year;

    @Id
    @Column(name = "day", nullable = false, columnDefinition = "Date comment '日期,只需要到日期' ")
    private Date day;

    @Column(name = "description", nullable = false, columnDefinition = "varchar(32) comment '节假日描述' ")
    private String description;

    public Date getDay() {
        return day;
    }

    public void setDay(Date day) {
        this.day = day;
    }

    public Integer getYear() {
        return year;
    }

    public void setYear(Integer year) {
        this.year = year;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
